FROM openjdk:8

RUN mkdir -p /home/aiplatform/ai-flow && cd /home/aiplatform/ai-flow

WORKDIR /home/aiplatform/ai-flow

MAINTAINER lfp

# 将jar包添加到容器中并更名为demo.jar
ADD /target/demo-0.0.1-SNAPSHOT.jar /home/aiplatform/ai-flow/demo.jar


# 暴露端口作为微服务
EXPOSE 9993

ENTRYPOINT ["java","-jar","/home/aiplatform/ai-flow/demo.jar"]